<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>upload_form.jsp</title>
<script>
function btnSave(){
	upload_frm.action='index2.jsp?inc_content=./databank/upload_result.jsp';
	upload_frm.submit();
}

function init(){
	document.getElementById("btnList").onclick = function(){
		location.href="index2.jsp?inc_content=./databank/list.jsp";
	}
}



</script>
</head>

<body>
	<h1>글쓰기(파일업로드 폼)</h1>
	<form id='upload_frm' action='' method='post' enctype='multipart/form-data'>

		

		<div>
			작성자: <input type="text" id='mid' name='mid'>
		</div>
		<div>
			작성일: <input type="text" id='mdate' name='mdate'>
		</div>
		<div>
			비밀번호:<input type="password" name='pwd'>
		</div>
		<div>
			제목: <input type="text" id='subject' name='subject'>
		</div>
		<div>
			내용:
			<textarea rows='5' cols='68' name='content'></textarea>
		</div>
		<div>
			파일명1: <input type="file" id='filename' name='filename'>
		</div>


		<div>
			<input type="button" value="저장" onclick="btnSave()"> 
			<input type="button" value="목록" id='btnList'>
		
		</div>
	</form>
	
<script type="text/javascript">
init();
</script>

</body>
</html>